using System;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Dao
{
    public class TableEquipDecomposeDao:DaoBase<TableEquipDecompose>
    {
        public override void AddPrimaryIndex(TableEquipDecompose model)
        {
            cachePrimary[model.id.ToString()] = model;
        }

        public override string GetFileName()
        {
            return "TableEquipDecompose.txt";
        }

        protected override TableEquipDecompose ParseRowData(string[] rowData)
        {
            TableEquipDecompose data = new TableEquipDecompose();
			data.id = rowData [0];

            if (string.IsNullOrEmpty(rowData[1]))
            {
                data.quality = 0;
            }
            else
            {
                data.quality = int.Parse(rowData[1]);
            }
			data.retRes = rowData [2];

            return data;
        }



    }

}
